package com.mischa.atc;

public class Utilities {

	public static int randomNumberBetween(int lower, int upper)
	{
		int result = lower - 1;
		while(result < lower || result > upper)
			result = (int) Math.rint(lower + Math.random() * (upper - lower));
		return result;
	}
	
	public static String padInteger(int value, int numberOfPlaces)
	{		
		return String.format("%0" + numberOfPlaces + "d", value);
	}
	
}
